﻿using System;
using System.Configuration;

namespace IfSoft.OA.DataAccess
{
    public abstract class RepositoryBase
    {
        protected OADBContext GetContext()
        {           
            return new OADBContext(ConnectionString);
        }

        protected string ConnectionString
        {
            get { return ConfigurationManager.ConnectionStrings["OADBContext"].ConnectionString; }
        }
    }
}
